// components/headline-text/headline-text.js
Component({
  properties: {
    data: {
      type: Object,
      value: {}
    }
  },

  methods: {
    toNewPage (event) {
      let path = event.currentTarget.dataset.path
      wx.navigateTo({
        url: `/pages/${path}/${path}`
      })
    }
  }
})
